package cn.xsly.ymcc.fegin;

import cn.xsly.ymcc.domain.User;
import cn.xsly.ymcc.query.UserQuery;
import cn.xsly.ymcc.result.JSONResult;
import feign.hystrix.FallbackFactory;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public class UserFeginFactory implements FallbackFactory<UserFeginClient> {
    @Override
    public UserFeginClient create(Throwable cause) {
        return new UserFeginClient() {
            @Override
            public List<Long> idlist(UserQuery query) {
                cause.printStackTrace();
                return null;
            }
        };

    }
}
